
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template/template.xhtml"
	contentType="text/html; charset=ISO-8859-1">
	<ui:define name="cuerpo">
		
		<h:form id="frmDataTableMulti">
			<p:outputPanel id="pnlDataTableMulti">
				<!-- <p:messages id="idMsmRegistro"></p:messages> -->
				<p:growl id="idMsmRegistro" sticky="true" />
				<p:panel header="Multi-Tabla" style="width: 85%">
					<table>
						<tr>
							<td><h:outputText id="lblCodTabla" value="Código Tabla: " /></td>
							<td><p:selectOneMenu id="cboTabla"
									value="">
									<f:selectItem itemLabel="--Todos--" itemValue="" />
									

								</p:selectOneMenu></td>
						</tr>
						
						<tr>
							<td><p:commandButton id="buscar" value="Buscar" ajax="true"
									update=":frmDataTableMulti:pnlDataTableMulti">
								</p:commandButton></td>
							<td><p:commandButton id="nuevo" value="Nuevo" ajax="true"									
									update=":frmRegistroMulti:pnlGridRegistro"
									onclick="dlgModalRegistro.show();">
								</p:commandButton></td>
						</tr>

					</table>
					
				</p:panel>
			</p:outputPanel>
			
		
			
		</h:form>
		<!--Fin Data Table Oficina -->
	
		<p:confirmDialog id="confirmDialog" message="¿Está seguro de eliminar registro?"
			header="Confirmación" severity="alert" widgetVar="confirmation">

			<h:form id="formRegistroConfirmDialog">
				<center>
					<p:commandButton id="confirm" value="Si" ajax="true"
									update=":frmDataTableMulti:pnlDataTableMulti" 
									
									oncomplete="confirmation.hide();">								
					</p:commandButton>				
					<p:commandButton id="decline" value="No" onclick="confirmation.hide()" type="button" />
				</center>
			</h:form>
		</p:confirmDialog>
		
		<h:form id="frmRegistroMulti">
			<p:outputPanel id="pnlRegistro">
				<p:dialog id="modalRegistro" header="Actualización de Multi-Tabla"	styleClass="modalPrueba" 		 		
					widgetVar="dlgModalRegistro" modal="true" height="350" width="400" closable="false">  					

					<p:panelGrid id="pnlGridRegistro" columns="2" cellspacing="0" cellpadding="2">
					
						<h:outputText id="outCodMult" value="Cod. Mult.:  " />				
						<h:inputText id="inpCodMult" value="" disabled="#{multiMB.flagEditar}" size="50" maxlength="3" />
						
						<h:outputText id="outCodElem" value="Cod. Elem.:  " />				
						<h:inputText id="inpCodElem" value="" disabled="#{multiMB.flagEditar}" size="50" maxlength="4" />
						
						<h:outputText id="outValor1" value="Valor 1:  " />				
						<h:inputText id="inpValor1" value="" size="50" />
						
						<h:outputText id="outValor2" value="Valor 2:  " />				
						<h:inputText id="inpValor2" value="" size="50" />
						
						<h:outputText id="outValor3" value="Valor 3:  " />				
						<h:inputText id="inpValor3" value="" size="50" />
						
						<h:outputText id="outValor4" value="Valor 4:  " />				
						<h:inputText id="inpValor4" value="" size="50" />
						
						<h:outputText id="outValor5" value="Valor 5:  " />				
						<h:inputText id="inpValor5" value="" size="50"  />
						
						<h:outputText id="outValor6" value="Valor 6:  " />				
						<h:inputText id="inpValor6" value="" size="50" />
						
						<h:outputText id="outValor7" value="Valor 7:  " />				
						<h:inputText id="inpValor7" value="" size="50"/>
						
					
					</p:panelGrid>
					
					<!-- <p:panelGrid id="pnlGridRegistroBtn" columns="2" cellspacing="0" cellpadding="2"> -->
						<center>
							<p:commandButton value="Guardar" id="btnGuardar"  update=":frmDataTableMulti:pnlDataTableMulti" oncomplete="dlgModalRegistro.hide();" />
							<p:commandButton value="Cancelar" id="btnCancelar" onclick="dlgModalRegistro.hide();" />
						</center>
					<!-- </p:panelGrid> -->

				</p:dialog>
			</p:outputPanel>
		</h:form>
		
		
		
	</ui:define>
</ui:composition>

</html>